Skip to content

Remove dead Ready and lastEventTime fields - #94

Open
damilolaedwards wants to merge 1 commit into
ethpandaops:masterfrom
damilolaedwards:fix/remove-dead-fields
Open

Remove dead Ready and lastEventTime fields#94
damilolaedwards wants to merge 1 commit into
ethpandaops:masterfrom
damilolaedwards:fix/remove-dead-fields

Conversation

@damilolaedwards

Copy link
Copy Markdown

Summary

Ready is only ever written, never read, and isn't exposed on the Node interface, so no consumer can reach it either. lastEventTime has the same shape: a dedicated mutex guarding a field nobody reads. Neither affects behavior, they're just state nothing observes.

Test plan

  • No new test: this removes unreachable state rather than changing behavior, so the existing suite passing is the regression check
  • go build ./..., go vet ./..., go test -race ./... all green

Ready is only ever written, never read, and is not exposed on the
Node interface so no consumer can reach it either. lastEventTime has
the same shape: a dedicated mutex guarding a field nobody reads.
Neither has any effect on behavior, they're just state nothing
observes. No new test needed here since this removes unreachable
state rather than changing behavior; the existing suite passing is
the regression check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant